package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.NursingProject;
import com.itheima.pojo.NursingProjectResule;
import com.itheima.pojo.PageNursingQueryParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NursingProjectMapper extends BaseMapper<NursingProject> {


    List<NursingProject> page(PageNursingQueryParam pageNursingQueryParam);

    @Select("select id value,name label from nursing_project")
    List<NursingProjectResule> allList();
}
